package com.alphas.user_centbackendalphas.service;

import com.alphas.user_centbackendalphas.common.BaseResponse;
import com.alphas.user_centbackendalphas.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Alphas
* @description 针对表【user】的数据库操作Service
* @createDate 2024-06-12 15:11:19
*/
public interface UserService extends IService<User> {
    BaseResponse<Long> userRegister(String userAccount, String userPassword, String checkPassword);
    BaseResponse<User> userLogin(String userAccount, String userPassword , HttpServletRequest request);
    User getSafetyUser(User originUser);

    BaseResponse<List<User>> userSearch(HttpServletRequest request, String username);

    BaseResponse<Boolean> deleteUser(HttpServletRequest request, long userId);

    BaseResponse<User> getCurrentUserInfo(HttpServletRequest request);

    BaseResponse<Integer> userLogout(HttpServletRequest request);
}
